home *** CD-ROM | disk | FTP | other *** search
- global wherearefiles, theresAnImage, whereToCopy, copyFolder, thePath, gKeepCopying, theText, theresthetext, whereistext, thetextfiles, copyfoldertext, gCount, gListOfSelections, gPosters
-
- on twoprogressbar vDoc, vImagesFolder
- register(xtra("ProgressCopy"), "zmqtdnhmr68j")
- getDestFromUser()
- if the platform contains "Mac" then
- thetextcopy = whereToCopy & "JustMarriedimages:"
- Ok = baCreateFolder(thePath & "images")
- Ok = baCreateFolder(thePath & "images:" & "Documents")
- wherearefiles = the moviePath & "images:"
- whereistext = the moviePath & "Documents:"
- copyFolder = thePath & "images:"
- copyfoldertext = copyFolder & "Documents:"
- else
- thetextcopy = whereToCopy & "JustMarriedimages\"
- Ok = baCreateFolder(thePath & "images")
- Ok = baCreateFolder(thetextcopy & "Documents")
- wherearefiles = the moviePath & "images\"
- whereistext = the moviePath & "Documents\"
- copyFolder = thePath & "images\"
- copyfoldertext = thetextcopy & "Documents\"
- end if
- vposters = []
- if gPosters[1][2] = "yes" then
- vposters.add(1)
- end if
- if gPosters[2][2] = "yes" then
- vposters.add(2)
- end if
- repeat with x = 1 to vposters.count
- oneFile = new(xtra("progresscopy"), 1, 100, 100)
- vNum = vposters[x]
- vPosterName = member("posterNames").text.line[vNum]
- copyFile(oneFile, wherearefiles & vPosterName, copyFolder & vPosterName, 1, 1, 1)
- put errorString(oneFile) into field "error"
- end repeat
- if gListOfSelections.count > 0 then
- repeat with x = 1 to gListOfSelections.count
- oneFile = new(xtra("progresscopy"), 1, 100, 100)
- vNum = gListOfSelections[x]
- vlargeName = member("largeNames").text.line[vNum]
- copyFile(oneFile, wherearefiles & vlargeName, copyFolder & vlargeName, 1, 1, 1)
- put errorString(oneFile) into field "error"
- end repeat
- end if
- copyFile(oneFile, whereistext & "captions.doc", copyfoldertext & "captions", 1, 1, 1)
- go("timed")
- end
-
- on getDestFromUser me
- fileObj = xtra("FileXtra3").new()
- if the platform contains "Mac" then
- thePath = fileObj.fx_FileSaveAsDialog("Macintosh HD:", "JustMarried", "Save")
- else
- thePath = fileObj.fx_FileSaveAsDialog(the moviePath, "JustMarried", "Save", 1)
- end if
- fileObj = 0
- end
-